<%@page import="java.util.ArrayList,com.ericsson.mna.model.pojo.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<link rel="stylesheet" type="text/css" href="commonStyle.css">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
<title>
	 Task Details
</title>

</head>
	<body>
	<%Task t=(Task)session.getAttribute("task"); %>
	<%@ include file="header.jsp" %>
	<div id="nav">

	</div>
	<div id="section">
	<h3>TASK TODO</h3>
	<form method="post" action="taskAction.do">
	<input type="hidden" value="taskDetailUpdate" name="pageName">
	<table style="width:100%">
	<tr>
		<td>Task ID</td>
		<td><input type="text" name="taskId" readonly="readonly" value= "<%=t.getTask_Id() %>" /></td>
	</tr>
	<tr>
		<td>Date Logged</td>
	<td> <input type="text" readonly="readonly" value="<%=t.getDate_Logged() %>"></input> <br> </td>

	</tr>
	<tr>
		<td>Category</td>
		<td> 
  			<input type="text" readonly="readonly" value=" <%=t.getCatagory() %> "/>
  		</td>
	</tr>
	<tr>
		<td>Sub-Category</td>
		<td> 
  			<input type="text" readonly="readonly" value=" <%=t.getSubCategory() %> "/>
  		</td>
	</tr>
	<tr>
		<td>Task Description</td>

  	<td><input type="text" readonly="readonly" value=" <%=t.getTask_Description() %> " /></td>

		</tr>
	<tr>
		<td>Task End Date</td>
		<td> <input type="text" name="Date logged" readonly="readonly"  value=" <%=t.getTask_End_Date() %> "><br> </td>
	</tr>
     <tr>
		<td>Next Action</td>
<td><input type= "text" value=" <%= t.getNext_Action() %> " readonly="readonly"></td>
</tr>

<tr>
<td>Assigned To</td>
<td><input type= "text" readonly="readonly" value=" <%= t.getAssingn_To() %> " ></td>
</tr>
<tr>
<td>Assigned By</td>
<td><input type= "text" readonly="readonly" value="<%= t.getAssigned_By() %>" ></td>
</tr>
<tr>
		<td>Priority</td>
		<td> <select>
  			<option value=" <%= t.getPriority() %>  ">1</option>
  			
		</select></td>
	<tr>
		<td class="required">Task Completed On   </td>
		<td> <input type="text"  name="completedOn" id="datepicker" ><br></td>
	</tr>
	<tr>
		<td class="required" >Status</td>
		<td> <select name="status">
  			<option value="Open">Open</option>
  			<option value="Complete">Complete</option>
  			<!-- <option value="Closed">Closed</option> -->

		</select></td></tr>
		<tr>
		<td class="required">Comments</td>
		<td><textarea rows="5" cols="5" name="comments"></textarea></td>
		</tr>
		<tr>
		<td>Domain</td>
		<td>
  			 <input type="text"  value=" <%= t.getDomain() %> " readonly="readonly" >
			<tr>
		<td>Sub-Domain</td>
		<td> <select>
  			<option value=" <%=t.getSub_Domain() %> "><%=t.getSub_Domain() %></option>
  			


		</select></td>
    <tr>
     <td></td>
		<td align="left"><input type="submit" value="Update Task Status" class="btn"></td>
		<td><input type="reset" value="Reset Task" class="btn"></td>
	</tr>
	</table>
	</form>
	</div>
	<%@ include file="footer.jsp" %>

	</body>
</html>

